package cn.bdqn.xtxg.oof;

public final class Car extends MotoVehicle {
	private int type;

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int calRent(int day) {
		int money=0;
		if(type==1)
		{
			money=500*day;
		}else if(type==2) {
			money=600*day;
		}else {
			money=300*day;
		}

		return money;
	}
	public Car(String no,String brand,int type )
	{
		this.setNo(no);
		this.setName(brand);
		this.type=type;
	}
	public Car( )
	{
		
	}
}